$(function(){
    $('#home-main').load('https://googledrive.com/host/0B835EUPdi2_YREU2TFFxeC1weVU/home-main.html',function () {
        $('#home-main').fadeIn('slow', function() {
          $('#splash').fadeIn();
        });
        $('.tbutton').click(showDiv);
        $('#news-button').click(function(){
            $('html, body').animate({
            scrollTop: $('#news').offset().top
          }, 800);
        });
      });
});

function showDiv() {
    var el=$(this);
    var show=el.attr("id").replace("-button","");
    if ($("#"+show).css("display")=="block") return;
    $("#home-main-display > div").fadeOut();
    $("#"+show).delay(500).fadeIn();
}